package com.alpha.eceasy.mall.api.vo;

import com.alpha.eceasy.mall.api.entity.MallCommodityCategoryAsso;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MallCommodityCategoryAssoVO extends MallCommodityCategoryAsso {
    private String commodityName;
    private String commodityCategoryName;

    public MallCommodityCategoryAssoVO(MallCommodityCategoryAsso asso) {
        BeanUtils.copyProperties(asso, this);
    }
}
